digest

fun digest(hashAlgorithm: HashAlgorithm, value: String): Result<SdJwtDigest>(source)

Calculates the integrity of serialized presentation.

Return

the calculated digest

Parameters

hashAlgorithm

the HashAlgorithm to be used for the calculation of the digest

value

the serialized SD-JWT to calculate the digest for